home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-09-10 | 1.9 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue Sep 10 16:58:03 1996, modified Tue Sep 10 16:58:03 1996, creator 'CWIE', type ASCII, 1160 bytes "DemoLib.c" , at 0x508 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 44 65 6d 6f 4c 69 | 62 2e 63 00 00 00 00 00 |..DemoLi|b.c.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 04 88 00 | 00 01 9a ae 5b 86 db ae |........|....[...|
|00000060| 5b 86 db 00 00 0c 00 00 | 00 00 00 00 00 00 00 00 |[.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f0 05 00 00 |........|........|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 44 65 6d 6f 4c 69 |#include| "DemoLi|
|00000090| 62 2e 68 22 0d 0d 73 74 | 61 74 69 63 20 53 74 72 |b.h"..st|atic Str|
|000000a0| 32 35 35 20 67 4c 69 62 | 53 74 72 69 6e 67 5b 5d |255 gLib|String[]|
|000000b0| 20 3d 20 7b 22 5c 70 54 | 68 69 73 20 69 73 20 74 | = {"\pT|his is t|
|000000c0| 68 65 20 4c 69 62 72 61 | 72 79 21 20 67 44 65 6d |he Libra|ry! gDem|
|000000d0| 6f 4c 6f 6e 67 20 69 73 | 20 7a 65 72 6f 2e 22 2c |oLong is| zero.",|
|000000e0| 0d 09 09 09 09 09 09 09 | 09 22 5c 70 54 68 69 73 |........|."\pThis|
|000000f0| 20 69 73 20 74 68 65 20 | 4c 69 62 72 61 72 79 21 | is the |Library!|
|00000100| 20 67 44 65 6d 6f 4c 6f | 6e 67 20 69 73 20 6f 6e | gDemoLo|ng is on|
|00000110| 65 2e 22 2c 0d 09 09 09 | 09 09 09 09 09 22 5c 70 |e.",....|....."\p|
|00000120| 54 68 69 73 20 69 73 20 | 74 68 65 20 4c 69 62 72 |This is |the Libr|
|00000130| 61 72 79 21 20 67 44 65 | 6d 6f 4c 6f 6e 67 20 69 |ary! gDe|moLong i|
|00000140| 73 20 74 77 6f 2e 22 2c | 0d 09 09 09 09 09 09 09 |s two.",|........|
|00000150| 09 22 5c 70 54 68 69 73 | 20 69 73 20 74 68 65 20 |."\pThis| is the |
|00000160| 4c 69 62 72 61 72 79 21 | 20 67 44 65 6d 6f 4c 6f |Library!| gDemoLo|
|00000170| 6e 67 20 69 73 20 6d 61 | 6e 79 2e 22 7d 3b 0d 0d |ng is ma|ny."};..|
|00000180| 23 70 72 61 67 6d 61 20 | 65 78 70 6f 72 74 20 6f |#pragma |export o|
|00000190| 6e 0d 6c 6f 6e 67 09 67 | 44 65 6d 6f 4c 6f 6e 67 |n.long.g|DemoLong|
|000001a0| 3b 0d 0d 70 61 73 63 61 | 6c 20 76 6f 69 64 20 44 |;..pasca|l void D|
|000001b0| 6f 5f 44 65 6d 6f 28 76 | 6f 69 64 29 0d 7b 0d 09 |o_Demo(v|oid).{..|
|000001c0| 57 69 6e 64 6f 77 50 74 | 72 20 74 57 69 6e 64 6f |WindowPt|r tWindo|
|000001d0| 77 50 74 72 20 3d 20 46 | 72 6f 6e 74 57 69 6e 64 |wPtr = F|rontWind|
|000001e0| 6f 77 28 29 3b 0d 09 52 | 65 63 74 20 74 52 65 63 |ow();..R|ect tRec|
|000001f0| 74 20 3d 20 7b 30 2c 30 | 2c 32 30 30 2c 32 30 30 |t = {0,0|,200,200|
|00000200| 7d 3b 0d 09 50 6f 69 6e | 74 20 74 50 6f 69 6e 74 |};..Poin|t tPoint|
|00000210| 3b 0d 09 50 74 72 20 74 | 50 74 72 20 3d 20 28 63 |;..Ptr t|Ptr = (c|
|00000220| 68 61 72 2a 29 20 26 67 | 4c 69 62 53 74 72 69 6e |har*) &g|LibStrin|
|00000230| 67 5b 33 5d 3b 0d 0d 09 | 69 66 20 28 74 57 69 6e |g[3];...|if (tWin|
|00000240| 64 6f 77 50 74 72 29 0d | 09 09 74 52 65 63 74 20 |dowPtr).|..tRect |
|00000250| 3d 20 74 57 69 6e 64 6f | 77 50 74 72 2d 3e 70 6f |= tWindo|wPtr->po|
|00000260| 72 74 52 65 63 74 3b 0d | 09 74 50 6f 69 6e 74 2e |rtRect;.|.tPoint.|
|00000270| 68 20 3d 20 28 74 52 65 | 63 74 2e 72 69 67 68 74 |h = (tRe|ct.right|
|00000280| 20 2b 20 74 52 65 63 74 | 2e 6c 65 66 74 29 20 3e | + tRect|.left) >|
|00000290| 3e 20 31 3b 0d 09 74 50 | 6f 69 6e 74 2e 76 20 3d |> 1;..tP|oint.v =|
|000002a0| 20 28 74 52 65 63 74 2e | 74 6f 70 20 2b 20 74 52 | (tRect.|top + tR|
|000002b0| 65 63 74 2e 62 6f 74 74 | 6f 6d 29 20 3e 3e 20 31 |ect.bott|om) >> 1|
|000002c0| 3b 0d 09 4d 6f 76 65 54 | 6f 28 74 50 6f 69 6e 74 |;..MoveT|o(tPoint|
|000002d0| 2e 68 2c 74 50 6f 69 6e | 74 2e 76 20 2b 20 28 32 |.h,tPoin|t.v + (2|
|000002e0| 34 20 2a 20 67 44 65 6d | 6f 4c 6f 6e 67 29 29 3b |4 * gDem|oLong));|
|000002f0| 0d 0d 09 74 50 74 72 20 | 3d 20 47 65 74 5f 44 65 |...tPtr |= Get_De|
|00000300| 6d 6f 53 74 72 69 6e 67 | 28 29 3b 0d 09 69 66 20 |moString|();..if |
|00000310| 28 74 50 74 72 29 0d 09 | 09 44 72 61 77 53 74 72 |(tPtr)..|.DrawStr|
|00000320| 69 6e 67 28 28 75 6e 73 | 69 67 6e 65 64 20 63 68 |ing((uns|igned ch|
|00000330| 61 72 2a 29 20 74 50 74 | 72 29 3b 0d 7d 0d 0d 70 |ar*) tPt|r);.}..p|
|00000340| 61 73 63 61 6c 20 76 6f | 69 64 20 53 65 74 5f 44 |ascal vo|id Set_D|
|00000350| 65 6d 6f 56 61 6c 75 65 | 28 6c 6f 6e 67 20 70 4c |emoValue|(long pL|
|00000360| 6f 6e 67 29 0d 7b 0d 09 | 67 44 65 6d 6f 4c 6f 6e |ong).{..|gDemoLon|
|00000370| 67 20 3d 20 70 4c 6f 6e | 67 3b 0d 7d 0d 0d 70 61 |g = pLon|g;.}..pa|
|00000380| 73 63 61 6c 20 6c 6f 6e | 67 20 47 65 74 5f 44 65 |scal lon|g Get_De|
|00000390| 6d 6f 56 61 6c 75 65 28 | 76 6f 69 64 29 0d 7b 0d |moValue(|void).{.|
|000003a0| 09 72 65 74 75 72 6e 20 | 67 44 65 6d 6f 4c 6f 6e |.return |gDemoLon|
|000003b0| 67 3b 0d 7d 0d 0d 70 61 | 73 63 61 6c 20 50 74 72 |g;.}..pa|scal Ptr|
|000003c0| 20 47 65 74 5f 44 65 6d | 6f 53 74 72 69 6e 67 28 | Get_Dem|oString(|
|000003d0| 76 6f 69 64 29 0d 7b 0d | 09 50 74 72 20 74 50 74 |void).{.|.Ptr tPt|
|000003e0| 72 3b 0d 0d 09 73 77 69 | 74 63 68 20 28 67 44 65 |r;...swi|tch (gDe|
|000003f0| 6d 6f 4c 6f 6e 67 29 0d | 09 7b 0d 09 09 63 61 73 |moLong).|.{...cas|
|00000400| 65 20 30 3a 0d 09 09 09 | 74 50 74 72 20 3d 20 28 |e 0:....|tPtr = (|
|00000410| 50 74 72 29 20 26 67 4c | 69 62 53 74 72 69 6e 67 |Ptr) &gL|ibString|
|00000420| 5b 30 5d 3b 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |[0];....|break;..|
|00000430| 09 63 61 73 65 20 31 3a | 0d 09 09 09 74 50 74 72 |.case 1:|....tPtr|
|00000440| 20 3d 20 28 50 74 72 29 | 20 26 67 4c 69 62 53 74 | = (Ptr)| &gLibSt|
|00000450| 72 69 6e 67 5b 31 5d 3b | 0d 09 09 09 62 72 65 61 |ring[1];|....brea|
|00000460| 6b 3b 0d 09 09 63 61 73 | 65 20 32 3a 0d 09 09 09 |k;...cas|e 2:....|
|00000470| 74 50 74 72 20 3d 20 28 | 50 74 72 29 20 26 67 4c |tPtr = (|Ptr) &gL|
|00000480| 69 62 53 74 72 69 6e 67 | 5b 32 5d 3b 0d 09 09 09 |ibString|[2];....|
|00000490| 62 72 65 61 6b 3b 0d 09 | 09 64 65 66 61 75 6c 74 |break;..|.default|
|000004a0| 3a 0d 09 09 09 74 50 74 | 72 20 3d 20 28 50 74 72 |:....tPt|r = (Ptr|
|000004b0| 29 20 26 67 4c 69 62 53 | 74 72 69 6e 67 5b 33 5d |) &gLibS|tring[3]|
|000004c0| 3b 0d 2f 2f 09 09 09 67 | 44 65 6d 6f 4c 6f 6e 67 |;.//...g|DemoLong|
|000004d0| 20 3d 20 30 3b 0d 09 09 | 09 62 72 65 61 6b 3b 0d | = 0;...|.break;.|
|000004e0| 09 7d 0d 09 72 65 74 75 | 72 6e 20 74 50 74 72 3b |.}..retu|rn tPtr;|
|000004f0| 0d 7d 0d 0d 23 70 72 61 | 67 6d 61 20 65 78 70 6f |.}..#pra|gma expo|
|00000500| 72 74 20 6f 66 66 0d 0d | 00 00 00 00 00 00 00 00 |rt off..|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000590| 33 33 66 66 00 ac 33 33 | 33 33 33 33 00 ad 33 33 |33ff..33|3333..33|
|000005a0| 33 33 00 00 00 ae 33 33 | 00 00 ff ff 00 af 33 33 |33....33|......33|
|000005b0| 09 44 65 6d 6f 4c 69 62 | 2e 63 02 00 00 00 00 00 |.DemoLib|.c......|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 01 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 ae 95 2b 95 00 00 | 04 88 00 00 01 9a 00 00 |....+...|........|
|00000600| ff ff 00 00 00 ba 00 00 | cc cc ff ff 00 bb 00 00 |........|........|
|00000610| cc cc cc cc 00 bc 00 00 | cc cc 99 99 00 bd 00 00 |........|........|
|00000620| cc cc 66 66 00 be 00 00 | cc cc 33 33 00 bf 00 00 |..ff....|..33....|
|00000630| cc cc 00 00 00 c0 00 00 | 99 99 ff ff 00 c1 00 00 |........|........|
|00000640| 99 99 cc cc 00 c2 00 00 | 99 99 99 99 00 c3 00 00 |........|........|
|00000650| 99 99 66 66 00 c4 00 00 | 99 99 33 33 00 c5 00 00 |..ff....|..33....|
|00000660| 99 99 00 00 00 c6 00 00 | 66 66 ff ff 00 c7 00 00 |........|ff......|
|00000670| 66 66 cc cc 00 c8 00 00 | 66 66 99 99 00 c9 00 00 |ff......|ff......|
|00000680| 00 00 00 48 00 09 4d 50 | 57 00 00 00 00 00 00 00 |...H..MP|W.......|
|00000690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 00 00 00 00 00 00 00 03 | 00 04 00 58 01 fc 03 62 |........|...X...b|
|000006b0| 04 7c 00 58 01 fc 03 62 | 04 7c ae 5b 4e a3 00 00 |.|.X...b|.|.[N...|
|000006c0| 02 b5 00 00 02 b5 00 00 | 01 22 01 00 00 00 00 04 |........|."......|
|000006d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000006e0| 00 00 00 46 01 d4 f9 00 | 1f f4 00 00 00 1c 00 46 |...F....|.......F|
|000006f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000700| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000710| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+